package com.yunti.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunti.springboot.po.Class;
import com.yunti.springboot.vo.Result;
import com.yunti.springboot.vo.req.ClassReq;
import com.yunti.springboot.vo.res.ClassRes;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ClassService extends IService<Class> {
    Result<List<ClassRes>> getAllClass(ClassReq req);

    Result<List<ClassRes>> getClassByYear(ClassReq req);

    Result<List<ClassRes>> getAllYear();

    Result updateClass(Class req);

    Result deleteClass(Class req);

    Result addClass(Class req);

    Result findPage(ClassReq req);

    Result getClassByGrade(ClassReq classReq);
}
